package com.neuedu.spring;

import org.springframework.context.annotation.Bean;
import org.springframework.context.annotation.Configuration;

import java.util.ArrayList;
import java.util.LinkedList;
import java.util.List;

@Configuration  //配置类，目的是配置容器的 信息
public class AppConfig {

    @Bean
    public UserController getUserController(){
        //
        List list = new ArrayList();
        list.add("asdsafas");

        return  new UserController();
    }


    @Bean
    public UserService getUserService(){
        return  new UserService();
    }

    @Bean
    public UserDao getUserDao(){
        return  new UserDao();
    }
}
